|
|
@@ -3,6 +3,7 @@
|
3
|
3
|
from __future__ import division
|
4
|
4
|
|
5
|
5
|
from django_logit import logit
|
|
6
|
+from django_query import get_query_value
|
6
|
7
|
from django_response import response
|
7
|
8
|
|
8
|
9
|
from equipment.models import IsolationPointInfo
|
|
|
@@ -12,7 +13,7 @@ from utils.error.errno_utils import IsolationPointStatusCode
|
12
|
13
|
@logit
|
13
|
14
|
def measure_window(request):
|
14
|
15
|
point_id = request.POST.get('point_id', '')
|
15
|
|
- point_measure_window = request.POST.get('point_measure_window', '')
|
|
16
|
+ point_measure_window = get_query_value(request, 'point_measure_window', val_cast_type='listjson')
|
16
|
17
|
|
17
|
18
|
try:
|
18
|
19
|
point = IsolationPointInfo.objects.get(point_id=point_id, status=True)
|